package com.ssh.dao.impl;

import org.springframework.orm.hibernate5.support.HibernateDaoSupport;

import com.ssh.dao.UserDao;
import com.ssh.entity.User;

public class UserDaoImpl extends HibernateDaoSupport implements UserDao {

	@Override
	public User getUserById(int userId) {
		return getHibernateTemplate().get(User.class, userId);
	}

	@Override
	public void saveUser(User user) {
		getHibernateTemplate().save(user);
	}

}
